import request from '@/utils/request'

// 查询人事档案管理信息列表
export function listPersonFile(query) {
  return request({
    url: '/teacher/personFile/list',
    method: 'get',
    params: query
  })
}

// 查询人事档案管理信息详细
export function getPersonFile(recordid) {
  return request({
    url: '/teacher/personFile/' + recordid,
    method: 'get'
  })
}

// 新增人事档案管理信息
export function addPersonFile(data) {
  return request({
    url: '/teacher/personFile',
    method: 'post',
    data: data
  })
}

// 修改人事档案管理信息
export function updatePersonFile(data) {
  return request({
    url: '/teacher/personFile',
    method: 'put',
    data: data
  })
}

// 删除人事档案管理信息
export function delPersonFile(recordid) {
  return request({
    url: '/teacher/personFile/' + recordid,
    method: 'delete'
  })
}

// 导出人事档案管理信息
export function exportPersonFile(query) {
  return request({
    url: '/teacher/personFile/export',
    method: 'get',
    params: query
  })
}